import requests
def face_detect(API_key,API_sercret,image_path):
    """该函数调用face++ face_detect接口"""
    base_url = 'https://api-cn.faceplusplus.com/facepp/v3/detect'
    files = {"image_file":(image_path,open(image_path,'rb'),"multipart/form-data")}
    payload = {
            "api_key":API_key,
            "api_secret":API_sercret
            }
    r = requests.post(base_url, params = payload,files = files )
    return r.json()